package sokoban;

import java.io.IOException;

import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.GameCanvas;

public class MenuCanvas extends GameCanvas {

	private Image titleImage;

	public MenuCanvas() {
		super(true);
		try {
			titleImage = Image.createImage("/images/Title.png");
		} catch (IOException e) {
		}
	}

	public void paint(Graphics g) {
		g.setColor(0, 0, 0);
		g.fillRect(0, 0, getWidth(), getHeight());
		g.drawImage(titleImage, getWidth() / 2, getHeight() / 2,
				Graphics.HCENTER | Graphics.VCENTER);
	}

}
